package com.lifeng.patterns.chainofResponsibility;

/**
 * @description:项目经理审批节点
 * @author: lifeng
 * @create: 2020/9/10 17:08
 */
public class ProjectManagerApprovaHandler extends AbstractApprovaHandler{
    public ProjectManagerApprovaHandler() {
    }

    public ProjectManagerApprovaHandler(AbstractApprovaHandler nextHandler) {
        super(nextHandler);
    }

    @Override
    protected Boolean doHandler(Integer fees) {
        //小于等于500在自己的审批范围下
        if(fees<=500){
            //TODO 是否同意
            System.out.println("项目经理:同意");
            return true;
        }else{
            //不在自己的范围内，直接过
            System.out.println("项目经理:不在自己的审批范围内,提交至上级领导");
            return true;
        }
    }
}
